Optimal. Leaf size=66 \[ -\frac{1}{2} \sqrt{\pi } e^{-a} \sqrt{b} \text{Erf}\left (\sqrt{b} x\right )+\frac{1}{2} \sqrt{\pi } e^a \sqrt{b} \text{Erfi}\left (\sqrt{b} x\right )-\frac{\cosh \left (a+b x^2\right )}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0351556, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {5327, 5298, 2204, 2205} \[ -\frac{1}{2} \sqrt{\pi } e^{-a} \sqrt{b} \text{Erf}\left (\sqrt{b} x\right )+\frac{1}{2} \sqrt{\pi } e^a \sqrt{b} \text{Erfi}\left (\sqrt{b} x\right )-\frac{\cosh \left (a+b x^2\right )}{x} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5327
Rule 5298
Rule 2204
Rule 2205
Rubi steps
\begin{align*} \int \frac{\cosh \left (a+b x^2\right )}{x^2} \, dx &=-\frac{\cosh \left (a+b x^2\right )}{x}+(2 b) \int \sinh \left (a+b x^2\right ) \, dx\\ &=-\frac{\cosh \left (a+b x^2\right )}{x}-b \int e^{-a-b x^2} \, dx+b \int e^{a+b x^2} \, dx\\ &=-\frac{\cosh \left (a+b x^2\right )}{x}-\frac{1}{2} \sqrt{b} e^{-a} \sqrt{\pi } \text{erf}\left (\sqrt{b} x\right )+\frac{1}{2} \sqrt{b} e^a \sqrt{\pi } \text{erfi}\left (\sqrt{b} x\right )\\ \end{align*}
Mathematica [A] time = 0.06609, size = 70, normalized size = 1.06 \[ \frac{\sqrt{\pi } \sqrt{b} x (\sinh (a)-\cosh (a)) \text{Erf}\left (\sqrt{b} x\right )+\sqrt{\pi } \sqrt{b} x (\sinh (a)+\cosh (a)) \text{Erfi}\left (\sqrt{b} x\right )-2 \cosh \left (a+b x^2\right )}{2 x} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.021, size = 70, normalized size = 1.1 \begin{align*} -{\frac{{{\rm e}^{-a}}{{\rm e}^{-b{x}^{2}}}}{2\,x}}-{\frac{{{\rm e}^{-a}}\sqrt{\pi }}{2}\sqrt{b}{\it Erf} \left ( x\sqrt{b} \right ) }-{\frac{{{\rm e}^{a}}{{\rm e}^{b{x}^{2}}}}{2\,x}}+{\frac{{{\rm e}^{a}}b\sqrt{\pi }}{2}{\it Erf} \left ( \sqrt{-b}x \right ){\frac{1}{\sqrt{-b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.08783, size = 74, normalized size = 1.12 \begin{align*} -\frac{1}{2} \,{\left (\frac{\sqrt{\pi } \operatorname{erf}\left (\sqrt{b} x\right ) e^{\left (-a\right )}}{\sqrt{b}} - \frac{\sqrt{\pi } \operatorname{erf}\left (\sqrt{-b} x\right ) e^{a}}{\sqrt{-b}}\right )} b - \frac{\cosh \left (b x^{2} + a\right )}{x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.72823, size = 529, normalized size = 8.02 \begin{align*} -\frac{\sqrt{\pi }{\left (x \cosh \left (b x^{2} + a\right ) \cosh \left (a\right ) + x \cosh \left (b x^{2} + a\right ) \sinh \left (a\right ) +{\left (x \cosh \left (a\right ) + x \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right )\right )} \sqrt{-b} \operatorname{erf}\left (\sqrt{-b} x\right ) + \sqrt{\pi }{\left (x \cosh \left (b x^{2} + a\right ) \cosh \left (a\right ) - x \cosh \left (b x^{2} + a\right ) \sinh \left (a\right ) +{\left (x \cosh \left (a\right ) - x \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right )\right )} \sqrt{b} \operatorname{erf}\left (\sqrt{b} x\right ) + \cosh \left (b x^{2} + a\right )^{2} + 2 \, \cosh \left (b x^{2} + a\right ) \sinh \left (b x^{2} + a\right ) + \sinh \left (b x^{2} + a\right )^{2} + 1}{2 \,{\left (x \cosh \left (b x^{2} + a\right ) + x \sinh \left (b x^{2} + a\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cosh{\left (a + b x^{2} \right )}}{x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\cosh \left (b x^{2} + a\right )}{x^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]